<template>
	<view>
		<view class="demo4" @click="fun">
			demo4的页面
			<view class="box1" >
				点击
			</view>
			<view class="">
				
				{{num}}
			</view>
			<switch checked="true" @change="changeFun" />
		</view>
	</view>
</template>

<script setup>
	import {ref} from "vue"
	const num = ref(1)
	const fun = () =>{
		num.value++;
		console.log(123)
	}
	
	//changeFun方法的
	const changeFun = (e) =>{
		console.log(e)
	}
</script>

<style>
.box1{
	width: 200px;
	height: 200px;
	background: orange;
}
</style>
